/**
 * 
 */
package wfta.common;

import java.io.Serializable;

/**
 * @author Michele Bortolato
 * Defines an Item ordered by a Client
 */
public class Order implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/**
	 * Unique identifier of the Item ordered */
	private short ID;
	/**
	 * Quantity of the Item Ordered
	 */
	private short quantity;
	
	/**Constructor
	 * @param id ID
	 * @param qty Quantity
	 */
	public Order(short id, short qty){setID(id);setQuantity(qty);}

	/**Constructor
	 * @param i ID
	 * @param j Quantity
	 */
	public Order(int i, int j) {
		setID((short)i);setQuantity((short)j);
	}

	public void setID(short iD) {
		ID = iD;
	}

	public short getID() {
		return ID;
	}

	public void setQuantity(short quantity) {
		this.quantity = quantity;
	}

	public short getQuantity() {
		return quantity;
	}

}
